package com.example.communist_app_api.db.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LikeDao {

    int getLikeNum(Integer id);

    int insertLike(@Param("userId")Integer userId,@Param("articleId")Integer articleId);

    int deleteLike(@Param("userId")Integer userId,@Param("articleId")Integer articleId);

    Boolean judgmentLike(@Param("userId")Integer userId,@Param("id")Integer id);

}
